
function barEvt(yData,xData,ele,bottom){
    var barOption = {
        animation: false,
        tooltip: {
            trigger: 'axis',
          //  formatter: '{a1}<br />{b1} : {c1}',
            axisPointer: {
                type: 'shadow',
            },
            backgroundColor: 'rgba(9,89,124,0.8)',
            borderWidth: 1,
            borderColor: 'rgba(6,214,224,0.5)',
            textStyle: {
                color: '#4ff2f4'
            }
        },
        grid: {
           top:'8%',
		        left: '3%',
		        right: '3%',
		        bottom: '3%',
		        containLabel: true
        },
        xAxis: {
            type: 'category',
            splitLine:{    //grid区域分隔线
                show:false,
                lineStyle: {
                    width:1,
                    type:"solid",
                    color:"#2a3f7e"
                }
            },
            axisLabel:{
                show: true,
                color:'#c0d4da',
                interval:false,
                rotate : 25,
            },
            axisTick: {
                show: true,   //刻度线
                color:"#c0d4da"
            },
            axisLine:{
                show: true,   //坐标轴轴线
                lineStyle: {
                    width:1,
                    color:"#c0d4da"
                }
            },
            data: yData
        },
        yAxis : {
            splitLine:{    //grid区域分隔线
                show:true,
                lineStyle: {
                    width:1,
                    type:"solid",
                    color:"#2a3f7e"
                }
            },
            axisTick: {
                show: true,   //刻度线
                color:'#c0d4da'
            },
            axisLine: {
                show: true ,  //坐标轴轴线
                lineStyle: {
                    width:1,
                    color:"#c0d4da"
                }
            },
            axisLabel: {  //坐标轴标签
                show: true
            },
        },
        series: [{
            name: '风险设备数',
            type: 'bar',
            barGap: '-100%',
            barCategoryGap:'70%',
            data: xData,
            itemStyle: {
                normal: {
                    color: '#0ea4e3',
//                  barBorderRadius:35,
                }
            },
        }]
    };
    var barChart = echarts.init(document.getElementById(ele))
    barChart.setOption(barOption);
    window.addEventListener("resize", function () {
        barChart.resize();
    });
}


function allData(data){
	var allNum=0
	for(var a=0;a<data.length;a++){
		allNum+=data[a].value
	}
	return allNum
}

var time=["time1","time2"]
function rightPie(pieData,ele,num,color,flag){
	window.clearInterval(time[flag])
    var pie3Opt = {
        color:color,
        backgroundColor: 'transparent',
        tooltip : {
            trigger: 'item',
            //formatter: "{a} <br/>{b} : {c} ({d}%)",
            formatter:function(param){
                if(param.name){
                	return  '<div>'+param.name+'</div>' +
			        '<div>'+param.value+'  ('+param.percent+'%)</div>'
                }
    		},
            position:'right'
        },
        series: [{
            name: '',
            type: 'pie',
            radius: ['50%', '70%'],
            center: ['45%', '45%'],
            hoverAnimation: true,
            label: {
                normal: {
                    show: false,
                    position: 'center'
                },
                emphasis: {
                    show: false,
                    textStyle: {
                        fontSize: '30',
                        fontWeight: 'bold'
                    }
                }
            },
            data: pieData
        },{
            name: '',
            type: 'pie',
            clockWise: true,
            hoverAnimation: false,
            animationType: 'scale',
            radius: [200, 200],
            center: ['45%', '43%'],
            label: {
                normal: {
                    position: 'center'
                }
            },
            data: [{
                value: 0,
                label: {
                    normal: {
                        //formatter: '38',
                        textStyle: {
                            color: '#20fd07',
                            fontSize: 25,
                            fontWeight: 'bold'
                        }
                    }
                }
            }, {
                tooltip: {
                    show: false
                },
                label: {
                    normal: {
                        //formatter: '\n',
                        textStyle: {
                            color: '#bbeaf9',
                            fontSize: 12
                        }
                    }
                }
            }]
        }]
    };

    var pie3Chart = echarts.init(document.getElementById(ele))
    pie3Chart.setOption(pie3Opt)
    window.addEventListener("resize", function () {
        pie3Chart.resize();
    });
    var pieIndex = 0
    time[flag]=window.setInterval(function(){
    	if (pieIndex >num-1){
            pieIndex = 0
        }
        for (var i = 0;i <num;i++){
            if (i != pieIndex){
                pie3Opt.series[0].data[i]['selected'] = false;
            }else{
                pie3Opt.series[0].data[i]['selected'] = true;
            }
        }
        pie3Opt.series[1].data[0].label.normal.formatter = (pie3Opt.series[0].data[pieIndex].value/allData(pieData)*100).toFixed(1) + "%"
        //pie3Opt.series[1].data[0].label.normal.formatter=parseInt(Math.random()*99) + "%"
        pie3Opt.series[1].data[1].label.normal.formatter = "" + pie3Opt.series[0].data[pieIndex].name
        pie3Chart.setOption(pie3Opt)
        pieIndex++
    },1000)
}

var  color1 = ["#00a9e1","#0046af","#360293","#560081","#af0058","#ff8700", "#09a7e2", "#93dd6e","#fce24f","#b8ff2e","#09e24b","#09e2cb"]
var pieData=[
	{name:'DTU数据中心 ',value:27944},
	{name:'网关设备',value:2693 },
	{name:'可编程逻辑控制器',value:2169 },
	{name:'操作员站',value:603  },
	{name:'集散控制系统',value:385  },
	{name:'企业资源计划系统',value:316  },
	{name:'数据采集监控系统',value:312  },
	{name:'工程师站',value:261  },
	{name:'人机界面',value:211  },
	{name:'电力应用系统',value:189  }
]
rightPie(pieData,"gyPie1",10,color1,0)

var data1st=[
    {name:'高危',value:3034},
    {name:'中危',value:4263},
    {name:'低危',value:799}
]
var color2=["red","#ff8d00","yellow"]
rightPie(data1st,"gyPie3",3,color2,1)
 
var yData1=['摩莎','宏电','西门子','罗克韦尔','Tridium','和利时','思爱普','才茂通信','施耐德','汉科泰软件']
var xData1=[2438,1247,800,760,737,710,312,307,280,224]
barEvt(yData1,xData1,"gyBar3","60")

var yData=['广东','福建','北京','浙江','江苏','上海','山东','四川','湖北','广西']
var xData=[4495,4376,3142,2105,1640,1413,1404,1254,1014,1004]
barEvt(yData,xData,"gyBar1","40")

$(".sb_pie li").click(function(){
    $(this).addClass("active").siblings().removeClass("active")
    var index=$(this).index();
    var selectValue = $('.cityChange').val();
    if(index==1){
        $("#gyBar2").show()
        $("#gyPie1").hide()
        var yData = null;
        var xData = null;
        if(selectValue == '工业控制设备'){
        	yData=['ddp-udp','http','ddp-tcp','telnet','hart-ip','moxa-nport','modbus','cspv4','fox','hollysys-lk']
            xData=[26115,2383,1828,816,754,673,556,482,465,398]
        }else if(selectValue == '视频监控设备'){
        	yData=['rtsp','snmp','http','dahua-dvr','onvif','telnet','https','wdbrpc','ftp','sip']
            xData=[598608,156102,137307,112772,22304,4126,3916,2340,1990,1057]
        }
        barEvt(yData,xData,"gyBar2","60")
    }else if(index==0){
        $("#gyBar2").hide()
        $("#gyPie1").show()
        var yData = null;
        var xData = null;
        if(selectValue == '工业控制设备'){
        	var color1 = ["#00a9e1","#0046af","#360293","#560081","#af0058","#ff8700", "#09a7e2", "#93dd6e","#fce24f","#b8ff2e","#09e24b","#09e2cb"]
        	var pieData=[
        		{name:'DTU数据中心 ',value:27944},
        		{name:'网关设备',value:2693 },
        		{name:'可编程逻辑控制器',value:2169 },
        		{name:'操作员站',value:603  },
        		{name:'集散控制系统',value:385  },
        		{name:'企业资源计划系统',value:316  },
        		{name:'数据采集监控系统',value:312  },
        		{name:'工程师站',value:261  },
        		{name:'人机界面',value:211  },
        		{name:'电力应用系统',value:189  }
        	]
            rightPie(pieData,"gyPie1",10,color1,0);
        }else if(selectValue == '视频监控设备'){
        	var color1 = ["#00a9e1","#0046af","#360293"]
            var pieData1=[
            	{name:'网络摄像机',value:693164},
            	{name:'数字视频录像机',value:118550},
            	{name:'网络硬盘录像机',value:28096}
            ]
            rightPie(pieData1,"gyPie1",3,color1,0);
        }
    }
})

var yData=['缓冲区溢出','信息泄露','权限许可和访问控制','路径遍历','代码注入','资料不足','跨站脚本','输入验证','SQL注入','跨站请求伪造']
var xData=[3248,1311,667,492,474,422,419,367,366,330]
barEvt(yData,xData,"gyRander","70")

//地图
var geoCoordMap={}
var mapFeatures = echarts.getMap('china').geoJson.features;
mapFeatures.forEach(function(v) {
    // 地区名称
    var name = v.properties.name;
    // 地区经纬度
    geoCoordMap[name] = v.properties.cp;
});
var mapData = [
	{name:'广东',value:4495},
	{name:'福建',value:4376},
	{name:'北京',value:3142},
	{name:'浙江',value:2105},
	{name:'江苏',value:1640},
	{name:'上海',value:1413},
	{name:'山东',value:1404},
	{name:'四川',value:1254},
	{name:'湖北',value:1014},
	{name:'广西',value:1004},
	{name:'河北',value:971},
	{name:'河南',value:876},
	{name:'安徽',value:868},
	{name:'辽宁',value:846},
	{name:'黑龙江',value:694},
	{name:'天津',value:677},
	{name:'吉林',value:513},
	{name:'山西',value:482},
	{name:'湖南',value:450},
	{name:'江西',value:447},
	{name:'内蒙古',value:442},
	{name:'云南',value:426},
	{name:'陕西',value:425},
	{name:'重庆',value:398},
	{name:'新疆',value:301},
	{name:'贵州',value:205},
	{name:'甘肃',value:135},
	{name:'宁夏',value:131},
	{name:'海南',value:101},
	{name:'青海',value:90},
	{name:'西藏',value:39}
];

//for(var i=0;i<mapData.length;i++){
//	for(key in geoCoordMap){
//		if(key==mapData[i].name){
//			mapData[i].value=geoCoordMap[key].concat(mapData[i].value)
//		}
//	}
//}

var convertData = function (data) {
    var res = [];
    for (var i = 0; i < data.length; i++) {
        var geoCoord = geoCoordMap[data[i].name];
        if (geoCoord) {
            res.push({
                name: data[i].name,
                value: geoCoord.concat(data[i].value)
            });
        }
    }
    return res;
};

function getOptionMap(mapData,max){
	var optionMap = {
	    tooltip: {
	        trigger: 'item',
	        formatter: function(params) {
	            return '<div>'+params.name+'</div>'+
	            '<div>IP数量：'+params.data.value[2]+'</div>';
	        }
	    },
	    geo: {
				show: true,
				zoom: 1.2,
				roam: false,
				map: 'china',
				itemStyle: {
					normal: {
						show: false,
						borderColor: '#285ac6',
						borderWidth: 1,
						areaColor: '#123082',
						shadowBlur: 3,
						shadowColor: '#081435',
						shadowOffsetX: -4,
						shadowOffsetY: 8
					},
					emphasis: {
						areaColor: '#fce24f',
						borderColor: '#fce24f'
					}
				}
			},
	    series: [{
				type: 'map',
				zoom: 1.2,
				mapType: 'china',
				roam: false,
				label: {
					normal: {
						show: false,
						textStyle: {
							color: '#fff'
						}
					},
					emphasis: {
						show: true,
						textStyle: {
							color: '#fff'
						}
					}
				},
				itemStyle: {
					normal: {
						show: false,
						borderColor: '#3770ea',
						borderWidth: 1,
						areaColor: '#0f2d87'
					},
					emphasis: {
						areaColor: '#2a56bd',
						borderColor: '#2a56bd'
					}
				},
				data: convertData(mapData)
			},{
				name: 'Top 5',
				type: 'effectScatter',
				zlevel: 1,
				coordinateSystem: 'geo',
				symbolSize: function(val) {
					return val[2] / max * 15 + 10
				},
				showEffectOn: 'render',
				rippleEffect: {
					brushType: 'stroke'
				},
				hoverAnimation: true,
				label: {
					normal: {
						//            formatter: '{b}',
						position: 'right',
						show: false
					}
				},
				itemStyle: {
					normal: {
						color: '#f4e925',
						shadowBlur: 10,
						shadowColor: '#333'
					}
				},
				//    data: convertData(mapData)
				data: convertData(mapData.sort(function(a,b){
					return b.value[2]-a.value[2]
				}).slice(0,5))
			},{
				name: 'Top 5',
				type: 'scatter',
				zlevel: 1,
				coordinateSystem: 'geo',
				symbolSize: function(val) {
					return val[2] / max * 15 + 10 
				},
				showEffectOn: 'render',
				rippleEffect: {
					brushType: 'stroke'
				},
				hoverAnimation: true,
				label: {
					normal: {
						//            formatter: '{b}',
						position: 'right',
						show: false
					}
				},
				itemStyle: {
					normal: {
						color: '#f4e925',
						shadowBlur: 10,
						shadowColor: '#333'
					}
				},
				//    data: convertData(mapData)
				data: convertData(mapData.sort(function(a,b){
					return b.value[2]-a.value[2]
				}).slice(5))
			}]
	};
	return optionMap;
}

var mapChart = echarts.init(document.getElementById('webChina'))
mapChart.setOption(getOptionMap(mapData,4340))
window.addEventListener("resize", function () {
    mapChart.resize();
});

var type="1"
var timer
function show(mapData,max){
	window.clearInterval(timer)
	/******************************v定时器*********************************/
	var iNum=0
	function cityShow() {
		window.clearInterval(timer2)
		for(var i=0;i<mapData.length;i++){
			mapData[i].selected=false;
		}
		mapData[iNum].selected=true;
		mapChart.setOption(getOptionMap(mapData,max));
		mapListEvt(mapData[iNum].name)
		iNum++;
		if(iNum>mapData.length-1){
			iNum=0;
		}
	}
	cityShow()
	timer=window.setInterval(cityShow,2000)
	/******************************v定时器*********************************/
	//点击取消定时器
}

show(mapData,4340);

var count=0
var timer2
mapChart.on('click', function (evt) {
	//console.log(mapData)
    window.clearInterval(timer)
    window.clearInterval(timer2)
    var mapData = [];
    var val = $(".cityChange").val();
    if(val == '工业控制设备'){
    	mapData = [
        	{name:'广东',value:4495},
        	{name:'福建',value:4376},
        	{name:'北京',value:3142},
        	{name:'浙江',value:2105},
        	{name:'江苏',value:1640},
        	{name:'上海',value:1413},
        	{name:'山东',value:1404},
        	{name:'四川',value:1254},
        	{name:'湖北',value:1014},
        	{name:'广西',value:1004},
        	{name:'河北',value:971},
        	{name:'河南',value:876},
        	{name:'安徽',value:868},
        	{name:'辽宁',value:846},
        	{name:'黑龙江',value:694},
        	{name:'天津',value:677},
        	{name:'吉林',value:513},
        	{name:'山西',value:482},
        	{name:'湖南',value:450},
        	{name:'江西',value:447},
        	{name:'内蒙古',value:442},
        	{name:'云南',value:426},
        	{name:'陕西',value:425},
        	{name:'重庆',value:398},
        	{name:'新疆',value:301},
        	{name:'贵州',value:205},
        	{name:'甘肃',value:135},
        	{name:'宁夏',value:131},
        	{name:'海南',value:101},
        	{name:'青海',value:90},
        	{name:'西藏',value:39}
        ];
        
//        var optionMap = getOptionMap(mapData,4340);
//        mapChart.setOption(optionMap);
//         type="1"
//         show(mapData,4340); 
    }else{
    	mapData = [
        	{name:'江苏',value:110423},
        	{name:'山东',value:98501},
        	{name:'浙江',value:89714},
        	{name:'辽宁',value:66129},
        	{name:'广东',value:63000},
        	{name:'河北',value:43461},
        	{name:'福建',value:41818},
        	{name:'安徽',value:39927},
        	{name:'河南',value:31447},
        	{name:'重庆',value:25785},
        	{name:'吉林',value:23592},
        	{name:'四川',value:20180},
        	{name:'北京',value:19039},
        	{name:'上海',value:17833},
        	{name:'山西',value:17142},
        	{name:'湖南',value:15668},
        	{name:'江西',value:15104},
        	{name:'贵州',value:15098},
        	{name:'黑龙江',value:14544},
        	{name:'湖北',value:11334},
        	{name:'云南',value:10203},
        	{name:'陕西',value:8065},
        	{name:'广西',value:7902},
        	{name:'新疆',value:7551},
        	{name:'海南',value:6697},
        	{name:'天津',value:6159},
        	{name:'内蒙古',value:4213},
        	{name:'甘肃',value:3180},
        	{name:'西藏',value:2640},
        	{name:'宁夏',value:2044},
        	{name:'青海',value:1417}
        ]
//        var optionMap = getOptionMap(mapData,61100);
//        mapChart.setOption(optionMap);
//        type="2"
//        show(mapData,61100)
    }
     
    for(var i=0;i<mapData.length;i++){
        mapData[i].selected=false;
	}
    for(var j=0;j<mapData.length;j++){
        if(evt.name==mapData[j].name){
            mapData[j].selected=true;
        }
    }
    if(evt.name != ''){
    	if(val == '工业控制设备'){
    		mapChart.setOption(getOptionMap(mapData,4340));
    		type="1"
	        show(mapData,4340)
    	}else{
    		mapChart.setOption(getOptionMap(mapData,110423));
    		type="2"
	        show(mapData,110423)
    	}
    	
        mapListEvt(evt.name)
        //开启计时定时器
        function addCount(){
            count++
            if(count>10){
                count=0
                window.clearInterval(timer2)
                timer=window.setInterval(cityShow,2000)
            }
        }
        timer2=window.setInterval(addCount,1000)
    }
})

function mapListEvt(name){
	//console.log(type)
	var data = null;
	if(type=="1"){
		if(name == '北京'){
	        data = [
	        	['2018-07-0110:33:53','北京','PLC','s7','123.127.29.80',102,'北京'],
	        	['2018-06-2716:42:36','北京','DSC','ddp-udp','106.120.139.27',60001,'北京'],
	        	['2018-06-2805:48:37','北京','DSC','ddp-udp','106.37.212.12',60000,'北京'],
	        	['2018-07-0101:55:22','北京','HMI','https','111.207.101.96',443,'北京'],
	        	['2018-06-2720:45:05','北京','DCS','hollysys-macs','39.104.18.84',8000,'北京'],
	        	['2018-06-2723:53:53','北京','DSC','ddp-udp','111.231.197.171',60000,'北京'],
	        	['2018-06-2516:21:52','北京','DSC','ddp-udp','1.202.197.118',7001,'北京'],
	        	['2018-06-2520:47:09','北京','DCS','hollysys-macs','49.4.67.150',8000,'北京'],
	        	['2018-06-2800:07:35','北京','DSC','ddp-udp','111.231.197.171',60001,'北京'],
	        	['2018-06-2722:40:46','北京','PLC','cspv4','39.107.225.58',5000,'北京'],
	        	['2018-06-2520:47:09','北京','DCS','udp','49.4.67.150',8000,'北京'],
	        	['2018-06-2800:07:35','北京','DSC','udp','111.231.197.171',60001,'北京'],
	        	['2018-06-2722:40:46','北京','PLC','tcp','39.107.225.58',5000,'北京'],
	        	['2018-06-2712:39:12','北京','GATEWAY','hart-ip','101.201.28.23',6000,'北京'],
	        	['2018-06-2117:44:11','北京','DSC','ddp-udp','139.199.112.107',50123,'北京'],
	        	['2018-06-2117:44:11','北京','DSC','ddp-udp','139.199.133.88',51960,'北京'],
	        	['2018-06-2111:47:47','北京','PLC','ethernetip','39.106.176.22',44818,'北京']
	        ]
		}else if(name == '浙江'){
	        data = [
	        	['2018-06-2714:09:02','杭州','PLC','cspv4','112.124.7.97',8888,'浙江'],
	        	['2018-06-2801:34:27','杭州','PLC','cspv4','202.107.199.218',443,'浙江'],
	        	['2018-06-2722:33:48','杭州','EWS','siemens-license','61.130.132.213',4410,'浙江'],
	        	['2018-06-2800:03:52','杭州','EWS','siemens-license','115.200.78.14',4410,'浙江'],
	        	['2018-06-2722:41:12','金华','PLC','hollysys-lk','221.12.163.184',6000,'浙江'],
	        	['2018-06-2722:34:06','嘉兴','DSC','ddp-udp','123.157.248.106',5002,'浙江'],
	        	['2018-06-2723:49:57','杭州','EWS','siemens-license','60.176.47.98',4410,'浙江'],
	        	['2018-06-2800:10:06','杭州','DSC','ddp-udp','121.43.199.151',50123,'浙江'],
	        	['2018-06-2800:24:36','杭州','PLC','telnet','220.191.161.38',23,'浙江'],
	        	['2018-06-2800:03:52','杭州','EWS','tcp','115.200.78.14',4410,'浙江'],
	        	['2018-06-2722:41:12','金华','PLC','udp','221.12.163.184',6000,'浙江'],
	        	['2018-06-2722:34:06','嘉兴','DSC','udp','123.157.248.106',5002,'浙江'],
	        	['2018-06-2723:49:57','杭州','EWS','tcp','60.176.47.98',4410,'浙江'],
	        	['2018-06-2800:24:36','杭州','PLC','tcp','220.191.161.38',23,'浙江'],
	        	['2018-06-2419:52:33','浙江','DSC','ddp-udp','120.26.88.235',5002,'浙江'],
	        	['2018-06-2015:38:48','浙江','DSC','ddp-udp','121.40.27.88',51960,'浙江'],
	        	['2018-06-2011:09:29','浙江','DSC','ddp-udp','121.40.237.104',61697,'浙江'],
	        	['2018-06-2113:29:33','宁波','DSC','ddp-udp','61.130.113.44',5002,'浙江'],
	        	['2018-06-2121:58:01','湖州','EWS','siemens-license','125.125.248.99',4410,'浙江'],
	        	['2018-06-2122:53:19','温州','PLC','hollysys-lk','122.228.196.158',6000,'浙江'],
	        	['2018-06-2112:15:54','宁波','PLC','ethernetip-udp','60.190.35.246',44818,'浙江'],
	        	['2018-06-2215:07:59','丽水','DSC','ddp-tcp','183.245.142.29',5002,'浙江'],
	        	['2018-06-2116:09:36','杭州','POWER_SYSTEM','http','121.196.214.147',80,'浙江'],
	        	['2018-06-2116:09:37','杭州','POWER_SYSTEM','http','121.196.226.77',8080,'浙江'],
	        	['2018-06-2115:58:39','宁波','OPC','opc-ua','122.244.246.37',4840,'浙江'],
	        	['2018-06-2117:36:20','杭州','DSC','ddp-udp','101.71.21.20',65000,'浙江'],
	        	['2018-06-2118:09:25','杭州','ERP','http','122.225.218.229',8001,'浙江'],
	        	['2018-06-2120:05:16','绍兴','MUNICIPAL_SYSTEM','http','112.13.88.230',8090,'浙江'],
	        	['2018-06-2116:32:38','杭州','DCS','hollysys-macs','115.238.55.49',8000,'浙江'],
	        	['2018-06-2117:23:39','杭州','PLC','cspv4','115.236.60.242',4000,'浙江'],
	        	['2018-06-2115:39:19','杭州','POWER_SYSTEM','http','121.41.107.43',80,'浙江'],
	        	['2018-06-2200:40:12','杭州','DSC','ddp-udp','182.92.107.200',50123,'浙江'],
	        	['2018-06-2206:22:28','绍兴','DSC','ddp-tcp','115.231.200.30',5004,'浙江'],
	        	['2018-06-2218:31:24','浙江','DSC','ddp-udp','120.26.10.189',61697,'浙江'],
	        	['2018-06-2223:58:42','浙江','DSC','ddp-udp','120.26.227.16',55555,'浙江']
	        ]
	    }else if(name == '广东'){
			data = [
				['2018-06-2422:54:09','珠海','ENERGY_SYSTEM','http','221.4.218.26',8081,'广东'],
				['2018-06-2520:34:45','广东','SCADA','http','211.139.245.166',8080,'广东'],
				['2018-06-2801:53:19','广州','DSC','ddp-udp','111.230.223.62',65000,'广东'],
				['2018-06-2520:34:45','广东','SCADA','tcp','211.139.245.166',8080,'广东'],
				['2018-06-2416:39:11','深圳','DSC','ddp-udp','116.204.100.193',5002,'广东'],
				['2018-06-2406:47:44','广州','DCS','hollysys-macs','157.255.37.229',65000,'广东'],
				['2018-06-2406:47:44','广州','DCS','hollysys-macs','157.255.37.227',60000,'广东'],
				['2018-06-2407:12:20','广州','GATEWAY','https','124.172.245.39',55555,'广东'],
				['2018-06-2407:12:20','广州','GATEWAY','moxa-nport','124.172.245.39',10001,'广东'],
				['2018-06-2411:56:01','广州','DSC','ddp-udp','218.16.211.141',60000,'广东'],
				['2018-06-1819:24:25','深圳','GATEWAY','moxa-nport','202.46.35.138',4800,'广东'],
				['2018-06-1819:24:25','深圳','GATEWAY','moxa-nport','202.46.33.50',4800,'广东'],
				['2018-06-1819:24:25','广州','GATEWAY','moxa-nport','202.46.41.18',4800,'广东'],
				['2018-06-2123:38:12','广州','DSC','ddp-udp','111.231.234.114',51960,'广东'],
				['2018-06-2113:54:15','广州','unknown','modbus','139.199.225.69',502,'广东'],
				['2018-06-2309:58:05','佛山','EWS','siemens-license','113.72.122.165',4410,'广东']
			];
		}else if(name == '山东'){
			data = [
				['2018-07-0107:37:42','济宁','EWS','siemens-license','60.211.251.108',4410,'山东'],
				['2018-07-0109:45:45','烟台','DSC','ddp-udp','123.130.118.141',60000,'山东'],
				['2018-07-0101:09:13','滨州','POWER_SYSTEM','http','111.17.161.246',20000,'山东'],
				['2018-07-0108:17:36','潍坊','ERP','http','122.4.222.200',8000,'山东'],
				['2018-07-0103:46:38','滨州','POWER_SYSTEM','http','218.57.236.82',20000,'山东'],
				['2018-06-3021:05:53','德州','GATEWAY','moxa-nport','222.133.8.26',4800,'山东'],
				['2018-07-0105:27:02','莱芜','MUNICIPAL_SYSTEM','http','222.134.214.237',8009,'山东'],
				['2018-07-0106:51:22','济南','DSC','ddp-udp','60.208.57.229',60001,'山东'],
				['2018-07-0110:21:28','菏泽','GATEWAY','moxa-nport','124.131.219.62',4800,'山东'],
				['2018-07-0111:27:22','济南','GATEWAY','telnet','222.175.107.18',23,'山东'],
				['2018-07-0103:46:38','东营','POWER_SYSTEM','http','218.57.221.50',20000,'山东'],
				['2018-07-0105:29:47','莱芜','PLC','s7','222.175.71.166',102,'山东'],
				['2018-07-0105:54:34','泰安','DSC','ddp-tcp','222.174.25.186',5000,'山东'],
				['2018-07-0107:08:36','济南','POWER_SYSTEM','http','60.216.97.110',80,'山东'],
				['2018-07-0107:14:14','德州','GATEWAY','moxa-nport','112.253.35.90',4800,'山东'],
				['2018-07-0109:03:08','济宁','DSC','ddp-udp','202.194.178.20',51960,'山东'],
				['2018-07-0109:53:15','济南','DSC','ddp-tcp','222.175.128.118',8001,'山东'],
				['2018-07-0108:37:58','潍坊','POWER_SYSTEM','http','222.173.180.222',4000,'山东'],
				['2018-07-0110:36:44','济南','PLC','cspv4','111.17.212.30',4000,'山东']
			];
		}else if (name == '黑龙江'){
			data = [
				['2018-07-0104:32:19','绥化','PLC','hollysys-lk','61.180.233.152',3003,'黑龙江'],
				['2018-07-0102:36:08','绥化','PLC','hollysys-lk','61.180.233.152',5000,'黑龙江'],
				['2018-07-0101:26:10','绥化','PLC','hollysys-lk','61.180.233.152',6004,'黑龙江'],
				['2018-07-0102:14:26','绥化','PLC','hollysys-lk','61.180.233.152',5060,'黑龙江'],
				['2018-07-0102:44:32','绥化','DCS','hollysys-macs','61.180.233.152',44818,'黑龙江'],
				['2018-06-2912:04:25','双鸭山','PLC','modbus','112.101.195.14',502,'黑龙江'],
				['2018-06-3021:12:53','绥化','DCS','hollysys-macs','61.180.233.152',48899,'黑龙江'],
				['2018-07-0101:59:59','绥化','PLC','hollysys-lk','61.180.233.152',3000,'黑龙江'],
				['2018-07-0102:14:26','绥化','PLC','hollysys-lk','61.180.233.152',33333,'黑龙江'],
				['2018-07-0102:34:20','绥化','PLC','hollysys-lk','61.180.233.152',161,'黑龙江'],
				['2018-07-0102:44:32','绥化','PLC','hollysys-lk','61.180.233.152',5005,'黑龙江'],
				['2018-07-0103:24:02','绥化','PLC','hollysys-lk','61.180.233.152',2000,'黑龙江'],
				['2018-07-0104:32:19','绥化','PLC','hollysys-lk','61.180.233.152',50123,'黑龙江'],
				['2018-07-0108:36:03','绥化','PLC','hollysys-lk','61.180.233.152',6000,'黑龙江'],
				['2018-07-0102:16:09','绥化','PLC','hollysys-lk','61.180.233.152',10001,'黑龙江'],
				['2018-07-0104:40:29','绥化','PLC','hollysys-lk','61.180.233.152',30718,'黑龙江'],
				['2018-07-0106:48:28','绥化','PLC','hollysys-lk','61.180.233.152',5002,'黑龙江'],
				['2018-06-2517:26:36','齐齐哈尔','DSC','ddp-tcp','221.209.42.5',8000,'黑龙江']
			];
		}else if (name == '江苏'){
			data = [
				['2018-06-2600:40:48','苏州','EWS','siemens-license','117.83.136.143',4410,'江苏'],
				['2018-06-2519:29:38','无锡','EWS','siemens-license','112.0.123.53',4410,'江苏'],
				['2018-06-2707:00:08','南京','GATEWAY','https','223.111.99.254',443,'江苏'],
				['2018-06-2707:00:10','南京','GATEWAY','moxa-nport','223.111.99.254',4800,'江苏'],
				['2018-06-2608:46:33','无锡','PLC','modbus','61.177.159.114',502,'江苏'],
				['2018-06-2604:54:17','无锡','RTU','iec-104','61.177.113.22',20000,'江苏'],
				['2018-06-1920:33:49','苏州','ERP','http','61.177.60.106',8000,'江苏'],
				['2018-06-1921:09:36','无锡','EWS','siemens-license','112.23.67.246',4410,'江苏'],
				['2018-06-1919:28:03','镇江','DSC','ddp-udp','211.103.110.218',5001,'江苏'],
				['2018-06-1920:48:25','苏州','DSC','ddp-udp','58.210.172.36',5002,'江苏'],
				['2018-06-1920:03:46','苏州','DSC','ddp-udp','58.211.57.78',5007,'江苏'],
				['2018-06-2008:43:38','徐州','EWS','siemens-license','223.113.50.108',4410,'江苏'],
				['2018-06-2000:46:33','泰州','DSC','ddp-udp','122.194.111.158',5002,'江苏'],
				['2018-06-2611:25:27','盐城','DSC','ddp-udp','218.92.188.166',5002,'江苏'],
				['2018-06-2611:22:17','无锡','DSC','ddp-udp','61.160.118.218',5002,'江苏'],
				['2018-06-2612:09:13','无锡','DSC','ddp-udp','58.214.254.226',5002,'江苏']
			];
		}else if (name == '辽宁'){
			data = [
				['2018-06-2318:57:44','大连','HMI','http','218.25.171.115',80,'辽宁']
			];
		}else if (name == '四川'){
			data = [
				
			];
		}else if (name == '上海'){
			data = [
				['2018-06-2918:36:11','上海','ROUTER','http','61.172.57.178',80,'上海'],
				['2018-06-2919:22:17','上海','DSC','ddp-udp','116.239.2.6',5002,'上海'],
				['2018-06-2518:34:47','上海','DSC','ddp-udp','58.246.235.227',5002,'上海'],
				['2018-06-2518:31:52','上海','DSC','ddp-udp','49.51.136.40',60001,'上海'],
				['2018-06-2611:33:27','上海','GATEWAY','hart-ip','222.69.219.137',10001,'上海'],
				['2018-06-2612:51:41','上海','DSC','ddp-udp','180.167.14.83',60001,'上海'],
				['2018-06-2612:51:41','上海','DSC','ddp-udp','180.167.9.66',50123,'上海'],
				['2018-06-2522:20:09','上海','DSC','ddp-tcp','101.89.136.117',5004,'上海'],
				['2018-06-2718:44:16','上海','PLC','cspv4','106.15.180.246',55555,'上海'],
				['2018-06-2801:41:23','上海','PLC','cspv4','111.231.10.136',7001,'上海'],
				['2018-06-2801:10:50','上海','BAS','bacnet','111.231.89.102',47808,'上海'],
				['2018-06-2802:30:40','上海','DSC','ddp-udp','106.14.190.229',50123,'上海'],
				['2018-06-2801:41:23','上海','PLC','tcp','111.231.10.136',7001,'上海'],
				['2018-06-2801:10:50','上海','BAS','udp','111.231.89.102',47808,'上海'],
				['2018-06-2802:30:40','上海','DSC','udp','106.14.190.229',50123,'上海'],
				['2018-06-2600:14:46','上海','DSC','ddp-udp','103.6.222.206',61697,'上海'],
				['2018-06-2604:51:47','上海','ERP','http','116.228.213.20',5002,'上海'],
				['2018-06-2114:12:01','上海','DSC','ddp-udp','139.196.19.121',55555,'上海'],
				['2018-06-2114:12:01','上海','DSC','ddp-udp','139.196.52.196',50123,'上海'],
				['2018-06-2114:12:01','上海','DSC','ddp-udp','139.196.35.40',55555,'上海'],
				['2018-06-2610:07:16','上海','DCS','hollysys-macs','175.102.14.159',8000,'上海'],
				['2018-06-2610:07:16','上海','DCS','hollysys-macs','175.102.14.153',8000,'上海'],
				['2018-06-2610:25:27','上海','DSC','ddp-udp','210.22.87.170',5002,'上海'],
				['2018-06-2611:11:13','上海','DSC','ddp-udp','222.66.83.21',5002,'上海'],
				['2018-06-2616:51:03','上海','DSC','ddp-udp','180.166.218.113',51960,'上海'],
				['2018-06-2617:19:43','上海','DSC','ddp-udp','220.248.19.51',60000,'上海']
			];
		}else if (name == '吉林'){
			data = [
				
			];
		}else if (name == '安徽'){
			data = [
				['2018-07-0109:40:22','马鞍山','DSC','ddp-udp','60.174.153.155',5003,'安徽'],
				['2018-07-0109:53:16','马鞍山','DSC','ddp-udp','60.174.153.155',48899,'安徽'],
				['2018-07-0109:59:34','马鞍山','DSC','ddp-udp','60.174.153.155',2000,'安徽'],
				['2018-07-0110:13:41','马鞍山','DSC','ddp-udp','60.174.153.155',47808,'安徽'],
				['2018-07-0110:36:43','马鞍山','DSC','ddp-udp','60.174.153.155',6000,'安徽'],
				['2018-07-0109:29:26','马鞍山','DSC','ddp-udp','60.174.153.155',55555,'安徽'],
				['2018-07-0109:27:49','马鞍山','DSC','ddp-udp','60.174.153.155',5005,'安徽'],
				['2018-07-0109:21:23','马鞍山','DSC','ddp-udp','60.174.153.155',4800,'安徽'],
				['2018-07-0110:30:31','马鞍山','DSC','ddp-udp','60.174.153.155',44818,'安徽'],
				['2018-07-0110:24:33','马鞍山','DSC','ddp-udp','60.174.153.155',8001,'安徽'],
				['2018-07-0110:21:28','马鞍山','DSC','ddp-udp','60.174.153.155',10001,'安徽'],
				['2018-07-0110:30:31','马鞍山','DSC','ddp-udp','60.174.153.155',3003,'安徽'],
				['2018-07-0109:27:49','马鞍山','DSC','ddp-udp','60.174.153.155',60001,'安徽'],
				['2018-07-0109:59:44','马鞍山','DSC','ddp-udp','60.174.153.155',30718,'安徽'],
				['2018-07-0110:11:39','马鞍山','DSC','ddp-udp','60.174.153.155',61697,'安徽']
			];
		}else if (name == '河北'){
			data = [
				['2018-06-2716:38:12','石家庄','DSC','ddp-tcp','110.249.147.68',5007,'河北'],
				['2018-06-2605:43:02','邯郸','DSC','ddp-udp','118.25.194.27',61697,'河北'],
				['2018-06-2717:00:29','石家庄','DSC','ddp-udp','222.222.7.242',51960,'河北'],
				['2018-06-2502:48:06','石家庄','PLC','hollysys-lk','219.159.249.126',6000,'河北'],
				['2018-06-2801:15:16','邯郸','DSC','ddp-udp','121.42.208.43',65000,'河北'],
				['2018-06-2801:15:16','邯郸','DSC','udp','121.42.208.43',65000,'河北'],
				['2018-06-2010:40:01','石家庄','MINE_SYSTEM','http','111.224.34.168',81,'河北'],
				['2018-06-2012:39:15','廊坊','ERP','http','60.10.184.66',8000,'河北'],
				['2018-06-2013:25:04','唐山','MINE_SYSTEM','http','60.2.110.82',80,'河北']
			];
		}else if (name == '湖北'){
			data = [
				['2018-06-2521:52:09','荆州','DSC','ddp-tcp','218.200.128.21',8001,'湖北'],
				['2018-06-2208:43:16','武汉','DSC','ddp-udp','219.140.167.83',5001,'湖北'],
				['2018-06-2211:33:31','鄂州','PLC','snmp','219.138.231.40',161,'湖北'],
				['2018-06-2211:33:31','鄂州','PLC','snmp','219.138.231.74',161,'湖北'],
				['2018-06-2211:33:31','鄂州','PLC','ethernetip-udp','219.138.231.40',44818,'湖北'],
				['2018-06-2207:23:01','武汉','ENERGY_SYSTEM','http','61.183.196.70',84,'湖北'],
				['2018-06-2207:23:01','武汉','DSC','ddp-udp','61.183.201.150',55555,'湖北'],
				['2018-06-2210:20:55','十堰','DSC','ddp-udp','218.200.158.98',5002,'湖北'],
				['2018-06-2203:51:48','随州','DSC','ddp-udp','113.56.107.76',55555,'湖北']
			];
		}else if (name == '重庆'){
			data = [
				['2018-06-2409:34:05','重庆','DSC','ddp-tcp','222.180.239.3',55555,'重庆']
			];
		}else if (name == '福建'){
			data = [
				['2018-06-2304:58:01','泉州','OWS','http','61.131.57.98',80,'福建'],
				['2018-06-2305:16:28','泉州','DSC','ddp-tcp','218.5.136.239',5002,'福建'],
				['2018-06-2304:39:00','泉州','OWS','http','59.57.63.137',80,'福建'],
				['2018-06-2305:09:21','泉州','DSC','ddp-tcp','59.61.236.243',5002,'福建'],
				['2018-06-2305:48:06','泉州','PLC','cspv4','218.5.173.228',8000,'福建'],
				['2018-06-2311:19:10','福州','PLC','cspv4','125.77.30.135',8001,'福建']
			];
		}else if (name == '天津'){
			data = [
				['2018-06-2516:39:39','天津','DSC','ddp-udp','210.16.77.68',51960,'天津'],
				['2018-06-2011:44:43','天津','DSC','ddp-udp','60.30.52.178',5002,'天津']
			];
		}else if (name == '河南'){
			data = [
				['2018-06-2716:31:04','南阳','PLC','cspv4','219.156.146.1',9000,'河南'],
				['2018-06-2716:57:43','开封','PLC','modbus','218.28.206.6',502,'河南'],
				['2018-06-2719:23:22','许昌','DSC','ddp-udp','221.176.212.102',5007,'河南'],
				['2018-06-2716:31:04','南阳','PLC','cspv4','219.156.146.23',9000,'河南'],
				['2018-06-2719:39:04','郑州','PLC','cspv4','218.29.110.59',6000,'河南'],
				['2018-06-2719:39:04','郑州','PLC','tcp','218.29.110.59',6000,'河南'],
				['2018-06-2113:15:09','郑州','DSC','ddp-udp','122.114.125.106',50123,'河南']
			];
		}else if (name == '新疆'){
			data = [
				['2018-06-2519:03:04','克拉玛依','OPC','opc-ua','117.145.187.202',4845,'新疆'],
				['2018-06-2517:09:55','塔城地区','PLC','modbus','124.88.168.86',502,'新疆'],
				['2018-06-2518:40:59','昌吉回族自治州','DSC','ddp-udp','218.31.50.25',5002,'新疆'],
				['2018-06-2515:07:17','乌鲁木齐','PLC','cspv4','61.128.111.177',8000,'新疆'],
				['2018-06-2520:14:57','克拉玛依','EWS','siemens-license','222.81.173.190',4410,'新疆'],
				['2018-06-2520:14:57','克拉玛依','EWS','tcp','222.81.173.190',4410,'新疆']
			];
		}else if (name == '湖南'){
			data = [
				['2018-06-2515:06:03','怀化','MUNICIPAL_SYSTEM','http','183.215.201.31',8090,'湖南'],
				['2018-06-2215:53:30','常德','DSC','ddp-udp','218.75.135.177',5002,'湖南'],
				['2018-06-2219:31:27','长沙','DSC','ddp-udp','58.20.54.201',60001,'湖南']
			];
		}else if (name == '江西'){
			data = [
				['2018-06-2720:09:42','南昌','DSC','ddp-udp','111.75.205.67',5007,'江西'],
				['2018-06-2720:09:42','南昌','DSC','udp','111.75.205.67',5007,'江西']
			];
		}else if (name == '广西'){
			data = [];
		}else if (name == '云南'){
			data = [];
		}else if (name == '山西'){
			data = [];
		}else if (name == '陕西'){
			data = [
				['2018-06-2908:44:32','西安','PLC','cspv4','125.76.225.26',8443,'陕西'],
				['2018-06-2908:44:32','西安','DSC','ddp-udp','125.76.225.232',65000,'陕西'],
				['2018-06-2416:42:14','西安','DSC','ddp-udp','210.74.130.150',80,'陕西']
			];
		}else if (name == '甘肃'){
			data = [
				['2018-06-2222:20:47','兰州','unknown','modbus','61.178.26.86',502,'甘肃'],
				['2018-06-2223:31:16','兰州','DSC','ddp-udp','180.95.232.19',5002,'甘肃']
			];
		}else if (name == '宁夏'){
			data = [
				
			];
		}else if (name == '贵州'){
			data = [
				['2018-06-2309:25:56','六盘水','DSC','ddp-udp','58.16.209.148',65000,'贵州'],
				['2018-06-2310:34:10','安顺','DSC','ddp-tcp','61.159.153.75',8001,'贵州'],
				['2018-06-2312:30:21','遵义','SCADA','http','222.87.206.177',8888,'贵州']
			];
		}else if (name == '海南'){
			data = [];
		}else if (name == '内蒙古'){
			data = [];
		}else if (name == '青海'){
			data = [
				['2018-06-2418:34:22','海东地区','DSC','ddp-udp','218.206.169.227',5002,'青海']
			];
		}else if (name == '西藏'){
			data = [];
		}
	}else if(type=="2"){
		if(name == '台湾'){
			data = [];
		}else if(name == '北京'){
			data = [
				['2018-06-3011:32:32','北京','IP_CAMERA','rtsp','61.149.253.126',554,'北京'],
				['2018-06-3011:32:32','北京','IP_CAMERA','rtsp','61.149.253.34',554,'北京'],
				['2018-06-3012:09:53','北京','IP_CAMERA','http','118.247.241.9',80,'北京'],
				['2018-06-3012:09:53','北京','IP_CAMERA','http','118.247.236.164',80,'北京'],
				['2018-06-3013:28:40','北京','IP_CAMERA','rtsp','101.96.143.218',554,'北京'],
				['2018-06-3003:05:57','北京','NVR','http','60.207.126.50',8181,'北京'],
				['2018-06-3004:09:40','北京','NVR','http','111.194.6.228',80,'北京'],
				['2018-06-3001:02:43','北京','NVR','http','58.130.126.29',80,'北京'],
				['2018-06-3016:46:42','北京','NVR','http','60.206.64.189',80,'北京'],
				['2018-06-2701:47:18','北京','IP_CAMERA','rtsp','49.4.204.194',554,'北京'],
				['2018-06-2516:02:36','北京','NVR','http','1.95.42.24',80,'北京'],
				['2018-06-2515:25:29','北京','NVR','http','203.93.121.202',8181,'北京'],
				['2018-06-2514:39:55','北京','NVR','http','222.32.55.249',8090,'北京'],
				['2018-06-2709:13:21','北京','NVR','onvif','103.254.70.27',3702,'北京'],
				['2018-06-2707:39:36','北京','NVR','http','60.195.132.2',80,'北京'],
				['2018-06-2510:30:18','北京','IP_CAMERA','http','1.95.196.154',80,'北京'],
				['2018-06-2510:17:18','北京','IP_CAMERA','rtsp','1.89.216.166',554,'北京']
			];
		}else if(name == '浙江'){
			data = [
				['2018-06-3011:23:11','台州','IP_CAMERA','rtsp','125.127.182.178',554,'浙江'],
				['2018-06-3011:22:45','台州','IP_CAMERA','rtsp','60.188.254.80',554,'浙江'],
				['2018-06-3011:22:45','台州','IP_CAMERA','rtsp','60.188.245.234',554,'浙江'],
				['2018-06-3011:22:45','台州','IP_CAMERA','rtsp','60.188.236.166',554,'浙江'],
				['2018-06-3013:29:30','台州','IP_CAMERA','rtsp','115.203.6.215',554,'浙江'],
				['2018-06-3008:44:32','台州','IP_CAMERA','rtsp','218.73.24.112',554,'浙江'],
				['2018-06-3008:44:32','台州','IP_CAMERA','rtsp','218.73.30.83',554,'浙江'],
				['2018-06-3008:44:32','台州','IP_CAMERA','rtsp','218.73.30.42',554,'浙江'],
				['2018-06-3009:22:10','台州','IP_CAMERA','rtsp','183.149.219.214',554,'浙江'],
				['2018-06-3009:11:55','台州','IP_CAMERA','rtsp','125.126.5.0',554,'浙江'],
				['2018-06-3009:11:55','台州','IP_CAMERA','rtsp','125.126.9.200',554,'浙江'],
				['2018-06-3009:11:55','台州','IP_CAMERA','rtsp','125.126.33.228',554,'浙江'],
				['2018-06-3009:11:07','台州','IP_CAMERA','rtsp','183.153.203.37',554,'浙江'],
				['2018-06-3008:36:26','台州','IP_CAMERA','rtsp','220.189.140.151',554,'浙江'],
				['2018-06-3008:41:36','台州','IP_CAMERA','rtsp','125.126.153.33',554,'浙江'],
				['2018-06-3008:35:40','杭州','IP_CAMERA','rtsp','36.108.153.4',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.22.98',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.26.131',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.23.135',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.31.146',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.25.109',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.24.230',554,'浙江'],
				['2018-06-3008:53:30','台州','IP_CAMERA','rtsp','183.148.25.164',554,'浙江'],
				['2018-06-2905:21:55','金华','IP_CAMERA','rtsp','183.147.53.222',554,'浙江'],
				['2018-06-2905:21:55','金华','IP_CAMERA','rtsp','183.147.40.169',554,'浙江'],
				['2018-06-2905:28:08','金华','IP_CAMERA','rtsp','183.147.12.28',554,'浙江'],
				['2018-06-2905:28:09','金华','IP_CAMERA','onvif','183.147.28.122',3702,'浙江'],
				['2018-06-2721:43:32','嘉兴','DVR','dahua-dvr','223.93.102.106',37777,'浙江'],
				['2018-06-2721:43:32','杭州','DVR','dahua-dvr','223.93.133.226',37777,'浙江'],
				['2018-06-2722:22:56','杭州','DVR','dahua-dvr','61.175.192.82',81,'浙江'],
				['2018-06-2722:22:56','杭州','DVR','dahua-dvr','61.175.192.83',37777,'浙江'],
				['2018-06-2722:22:56','杭州','DVR','dahua-dvr','61.175.192.90',37777,'浙江'],
				['2018-06-2722:22:56','杭州','DVR','dahua-dvr','61.175.192.91',37777,'浙江'],
				['2018-06-2722:22:56','杭州','DVR','dahua-dvr','61.175.192.89',37777,'浙江'],
				['2018-06-2721:57:31','宁波','DVR','dahua-dvr','60.179.77.102',37777,'浙江'],
				['2018-06-2721:57:31','宁波','DVR','dahua-dvr','60.179.48.139',37777,'浙江'],
				['2018-06-2721:57:31','宁波','DVR','dahua-dvr','60.179.66.142',37777,'浙江'],
				['2018-06-2722:06:12','嘉兴','DVR','dahua-dvr','115.229.6.156',37777,'浙江'],
				['2018-06-2722:44:44','宁波','DVR','http','183.136.149.197',80,'浙江'],
				['2018-06-2722:44:59','杭州','DVR','dahua-dvr','60.176.224.117',37777,'浙江'],
				['2018-06-2722:44:59','杭州','DVR','dahua-dvr','60.177.1.128',37777,'浙江'],
				['2018-06-2723:03:58','宁波','DVR','dahua-dvr','115.215.222.192',37777,'浙江']
			];
		}else if(name == '广东'){
			data = [
				['2018-06-2515:32:31','汕头','NVR','http','120.237.61.237',80,'广东'],
				['2018-06-2520:04:02','梅州','NVR','http','120.198.98.94',80,'广东']
			];
		}else if(name == '山东'){
			data = [
				['2018-07-0111:02:50','青岛','IP_CAMERA','rtsp','221.215.214.167',554,'山东'],
				['2018-07-0111:01:21','青岛','IP_CAMERA','rtsp','218.56.93.17',554,'山东'],
				['2018-07-0111:01:38','青岛','IP_CAMERA','rtsp','112.226.231.122',554,'山东'],
				['2018-07-0111:04:36','济南','IP_CAMERA','rtsp','39.64.250.6',554,'山东'],
				['2018-07-0111:09:51','济南','IP_CAMERA','rtsp','39.64.135.25',554,'山东'],
				['2018-07-0111:27:22','济南','IP_CAMERA','rtsp','222.175.124.110',554,'山东'],
				['2018-07-0111:27:22','济南','IP_CAMERA','rtsp','222.175.105.154',554,'山东'],
				['2018-07-0110:51:01','青岛','DVR','dahua-dvr','123.234.46.118',37777,'山东'],
				['2018-07-0110:56:43','济南','DVR','dahua-dvr','113.128.204.86',37777,'山东'],
				['2018-07-0111:27:22','济南','DVR','dahua-dvr','222.175.116.245',37777,'山东'],
				['2018-06-3017:21:02','枣庄','IP_CAMERA','rtsp','222.175.52.26',554,'山东'],
				['2018-06-3017:18:03','东营','IP_CAMERA','rtsp','27.202.224.67',554,'山东'],
				['2018-06-3017:18:03','东营','IP_CAMERA','rtsp','27.202.243.83',554,'山东'],
				['2018-06-3016:45:32','临沂','NVR','http','39.76.209.77',80,'山东']
			];
		}else if(name == '香港'){
			data = [
				['2018-06-2510:26:25','香港特别行政区','IP_CAMERA','rtsp','223.16.180.212',554,'香港']
			];
		}else if(name == '黑龙江'){
			data = [
				['2018-06-3017:20:02','哈尔滨','IP_CAMERA','rtsp','42.102.132.100',554,'黑龙江'],
				['2018-06-3011:43:56','大庆','NVR','http','221.208.228.70',80,'黑龙江'],
				['2018-06-3011:17:26','七台河','NVR','http','122.157.37.171',80,'黑龙江'],
				['2018-06-2516:23:57','哈尔滨','NVR','http','60.14.120.56',80,'黑龙江'],
				['2018-06-2515:29:18','大兴安岭地区','NVR','https','218.8.230.188',443,'黑龙江'],
				['2018-06-2515:29:19','绥化','NVR','http','221.210.80.53',80,'黑龙江'],
				['2018-06-2515:12:24','绥化','NVR','http','221.210.126.34',80,'黑龙江'],
				['2018-06-2515:13:26','牡丹江','NVR','http','1.188.234.88',80,'黑龙江'],
				['2018-06-2513:11:59','绥化','NVR','http','60.14.199.89',80,'黑龙江'],
				['2018-06-2513:11:59','鸡西','NVR','http','60.14.230.131',80,'黑龙江'],
				['2018-06-2513:11:59','绥化','NVR','http','60.14.198.109',80,'黑龙江'],
				['2018-06-2513:11:59','绥化','NVR','http','60.14.220.220',80,'黑龙江'],
				['2018-06-2513:59:52','大庆','NVR','http','122.158.12.246',80,'黑龙江'],
				['2018-06-2514:53:29','哈尔滨','NVR','http','111.40.12.192',80,'黑龙江'],
				['2018-06-2514:53:29','哈尔滨','NVR','http','111.40.28.30',80,'黑龙江'],
				['2018-06-2514:53:29','哈尔滨','NVR','http','111.40.28.122',80,'黑龙江'],
				['2018-06-2514:53:29','哈尔滨','NVR','http','111.40.28.188',80,'黑龙江'],
				['2018-06-2514:53:29','哈尔滨','NVR','http','111.40.12.57',80,'黑龙江'],
				['2018-06-2511:59:09','大庆','NVR','http','61.158.48.32',80,'黑龙江'],
				['2018-06-2519:43:23','齐齐哈尔','NVR','http','111.40.67.208',80,'黑龙江'],
				['2018-06-2510:12:51','黑龙江','IP_CAMERA','telnet','60.11.127.107',23,'黑龙江'],
				['2018-06-2510:12:51','哈尔滨','IP_CAMERA','rtsp','60.219.129.225',554,'黑龙江'],
				['2018-06-2510:12:51','伊春','IP_CAMERA','rtsp','60.219.125.252',554,'黑龙江'],
				['2018-06-2510:12:51','黑龙江','IP_CAMERA','rtsp','60.11.125.238',554,'黑龙江'],
				['2018-06-2510:19:06','佳木斯','IP_CAMERA','rtsp','113.7.228.202',554,'黑龙江'],
				['2018-06-2510:19:06','伊春','IP_CAMERA','https','122.159.152.3',443,'黑龙江'],
				['2018-06-2510:07:08','齐齐哈尔','IP_CAMERA','rtsp','1.61.206.80',554,'黑龙江'],
				['2018-06-2510:07:08','齐齐哈尔','IP_CAMERA','rtsp','1.61.207.52',554,'黑龙江'],
				['2018-06-2510:07:08','齐齐哈尔','IP_CAMERA','rtsp','1.61.178.201',554,'黑龙江'],
				['2018-06-2510:09:47','哈尔滨','IP_CAMERA','rtsp','1.189.205.132',554,'黑龙江'],
				['2018-06-2510:46:28','黑河','IP_CAMERA','http','122.156.143.200',80,'黑龙江'],
				['2018-06-2511:07:08','伊春','IP_CAMERA','rtsp','122.159.151.50',554,'黑龙江'],
				['2018-06-2511:07:08','鹤岗','IP_CAMERA','rtsp','123.164.180.130',554,'黑龙江'],
				['2018-06-2511:07:08','鹤岗','IP_CAMERA','rtsp','123.164.176.9',554,'黑龙江'],
				['2018-06-2511:07:08','伊春','IP_CAMERA','rtsp','122.159.151.59',554,'黑龙江'],
				['2018-06-2511:07:08','鹤岗','IP_CAMERA','rtsp','123.164.177.134',554,'黑龙江'],
				['2018-06-2511:07:08','伊春','IP_CAMERA','rtsp','122.159.151.51',554,'黑龙江'],
				['2018-06-2511:03:39','哈尔滨','IP_CAMERA','rtsp','122.158.162.148',554,'黑龙江'],
				['2018-06-2510:45:37','佳木斯','IP_CAMERA','rtsp','122.159.179.44',554,'黑龙江'],
				['2018-06-2510:45:37','伊春','IP_CAMERA','rtsp','122.159.89.114',554,'黑龙江'],
				['2018-06-2510:45:37','伊春','IP_CAMERA','rtsp','122.159.95.2',554,'黑龙江'],
				['2018-06-2510:57:34','哈尔滨','IP_CAMERA','rtsp','1.190.217.195',554,'黑龙江'],
				['2018-06-2509:59:45','哈尔滨','IP_CAMERA','rtsp','1.63.217.41',554,'黑龙江'],
				['2018-06-2509:45:15','佳木斯','IP_CAMERA','rtsp','122.159.77.175',554,'黑龙江'],
				['2018-06-2510:13:34','哈尔滨','IP_CAMERA','rtsp','1.62.3.72',554,'黑龙江'],
				['2018-06-2510:13:34','哈尔滨','IP_CAMERA','rtsp','1.62.4.246',554,'黑龙江'],
				['2018-06-2509:58:27','大庆','IP_CAMERA','http','113.1.175.20',80,'黑龙江'],
				['2018-06-2509:58:27','哈尔滨','IP_CAMERA','rtsp','113.1.184.205',554,'黑龙江'],
				['2018-06-2509:58:27','大庆','IP_CAMERA','rtsp','113.1.182.229',554,'黑龙江'],
				['2018-06-2509:58:11','鸡西','IP_CAMERA','rtsp','122.156.90.160',554,'黑龙江'],
				['2018-06-2511:15:43','七台河','IP_CAMERA','rtsp','122.159.137.213',554,'黑龙江'],
				['2018-06-2511:15:43','伊春','IP_CAMERA','rtsp','122.159.144.144',554,'黑龙江'],
				['2018-06-2519:43:23','齐齐哈尔','IP_CAMERA','http','111.40.67.152',80,'黑龙江'],
				['2018-06-2519:43:23','牡丹江','IP_CAMERA','rtsp','111.40.75.122',554,'黑龙江'],
				['2018-06-2519:43:23','齐齐哈尔','IP_CAMERA','rtsp','111.40.67.186',554,'黑龙江']
			];
		}else if(name == '江苏'){
			data = [
				['2018-06-3013:29:30','泰州','IP_CAMERA','rtsp','115.203.18.216',554,'江苏'],
				['2018-06-3013:29:30','泰州','IP_CAMERA','rtsp','115.203.6.109',554,'江苏'],
				['2018-06-3008:53:30','泰州','IP_CAMERA','rtsp','183.148.21.97',554,'江苏'],
				['2018-06-2620:27:27','苏州','IP_CAMERA','rtsp','114.219.156.139',554,'江苏'],
				['2018-06-2620:27:27','苏州','IP_CAMERA','http','114.219.137.81',8090,'江苏'],
				['2018-06-2620:28:04','泰州','IP_CAMERA','onvif','123.97.125.189',3702,'江苏'],
				['2018-06-2523:29:38','南京','NVR','http','49.88.187.202',80,'江苏']
			];
		}else if(name == '辽宁'){
			data = [
				['2018-06-2905:28:15','本溪','IP_CAMERA','rtsp','221.203.110.174',554,'辽宁'],
				['2018-06-2905:49:45','沈阳','IP_CAMERA','rtsp','221.200.96.166',554,'辽宁'],
				['2018-06-2905:59:13','沈阳','IP_CAMERA','rtsp','211.137.18.157',554,'辽宁'],
				['2018-06-2823:06:30','沈阳','NVR','http','61.161.228.106',80,'辽宁'],
				['2018-06-2823:06:30','沈阳','NVR','http','61.161.239.198',80,'辽宁'],
				['2018-06-2900:27:32','辽阳','NVR','http','60.18.207.37',80,'辽宁'],
				['2018-06-2821:56:37','大连','NVR','http','175.163.52.251',80,'辽宁'],
				['2018-06-2821:56:37','大连','NVR','http','175.163.60.100',80,'辽宁'],
				['2018-06-2821:55:44','大连','NVR','http','175.163.95.178',80,'辽宁'],
				['2018-06-2821:55:44','大良','NVR','http','175.163.88.173',80,'辽宁'],
				['2018-06-2821:53:10','丹东','NVR','http','42.4.19.68',80,'辽宁'],
				['2018-06-2821:53:20','大连','NVR','http','175.163.46.226',80,'辽宁'],
				['2018-06-2821:53:20','大连','NVR','http','175.163.40.236',80,'辽宁'],
				['2018-06-2821:35:37','大连','NVR','http','175.162.223.40',80,'辽宁'],
				['2018-06-2821:35:37','大连','NVR','http','175.162.245.60',80,'辽宁'],
				['2018-06-2821:35:37','大连','NVR','http','175.162.246.163',80,'辽宁'],
				['2018-06-2822:47:54','大连','NVR','http','113.234.193.238',80,'辽宁'],
				['2018-06-2822:47:54','大连','NVR','http','113.234.189.166',80,'辽宁'],
				['2018-06-2822:47:54','大连','NVR','http','113.234.187.195',80,'辽宁']
			];
		}else if(name == '四川'){
			data = [];
		}else if(name == '上海'){
			data = [
				['2018-06-3011:53:43','上海','IP_CAMERA','rtsp','116.231.130.255',554,'上海'],
				['2018-06-3011:53:43','上海','IP_CAMERA','rtsp','116.231.150.89',554,'上海'],
				['2018-06-3011:53:43','上海','IP_CAMERA','rtsp','116.231.150.149',554,'上海'],
				['2018-06-3011:53:43','上海','IP_CAMERA','rtsp','116.231.147.206',554,'上海'],
				['2018-06-3019:53:39','上海','NVR','http','116.228.201.186',80,'上海'],
				['2018-06-3020:17:33','上海','NVR','http','211.136.129.250',80,'上海'],
				['2018-06-2517:29:14','上海','NVR','http','42.196.62.112',80,'上海'],
				['2018-06-2516:52:44','上海','NVR','http','42.196.21.117',80,'上海'],
				['2018-06-2518:55:13','上海','NVR','http','42.196.124.124',80,'上海'],
				['2018-06-2518:56:51','上海','NVR','http','61.165.191.67',80,'上海'],
				['2018-06-2521:24:43','上海','NVR','http','101.82.229.211',80,'上海'],
				['2018-06-2522:45:47','上海','NVR','http','101.231.127.246',80,'上海'],
				['2018-06-2522:30:09','上海','NVR','http','27.115.99.106',8090,'上海'],
				['2018-06-2522:30:23','上海','NVR','http','101.231.220.194',80,'上海'],
				['2018-06-2523:17:56','上海','NVR','http','58.40.124.6',8090,'上海'],
				['2018-06-2612:06:00','上海','NVR','http','180.166.247.158',80,'上海'],
				['2018-06-2522:00:40','上海','NVR','http','101.85.24.85',80,'上海'],
				['2018-06-2604:50:24','上海','NVR','http','116.228.29.70',80,'上海'],
				['2018-06-2604:50:24','上海','NVR','http','116.228.15.90',80,'上海'],
				['2018-06-2604:51:47','上海','NVR','http','116.228.221.83',80,'上海']
			];
		}else if(name == '吉林'){
			data = [];
		}else if(name == '安徽'){
			data = [];
		}else if(name == '河北'){
			data = [
				['2018-06-2715:20:59','沧州','NVR','http','110.244.91.34',80,'河北']
			];
		}else if(name == '湖北'){
			data = [
				['2018-06-2701:23:58','武汉','IP_CAMERA','rtsp','49.211.0.17',554,'湖北']
			];
		}else if(name == '重庆'){
			data = [];
		}else if(name == '福建'){
			data = [];
		}else if(name == '天津'){
			data = [
				['2018-06-3008:28:59','天津','IP_CAMERA','rtsp','36.106.57.153',554,'天津']
			];
		}else if(name == '河南'){
			data = [
				['2018-06-2721:12:54','郑州','DVR','dahua-dvr','218.29.74.114',37777,'河南']
			];
		}else if(name == '新疆'){
			data = [
				['2018-06-3008:35:40','博尔塔拉蒙古自治州','IP_CAMERA','rtsp','36.108.144.84',554,'新疆'],
				['2018-06-3008:15:38','塔城地区','IP_CAMERA','rtsp','36.107.153.226',554,'新疆'],
				['2018-06-2511:07:18','昌吉回族自治州','IP_CAMERA','rtsp','124.88.25.101',554,'新疆']
			];
		}else if(name == '湖南'){
			data = [
				['2018-06-2811:58:24','湘潭','IP_CAMERA','rtsp','223.156.114.157',554,'湖南'],
				['2018-06-2813:38:07','长沙','IP_CAMERA','rtsp','113.240.156.14',554,'湖南'],
				['2018-06-2813:46:33','长沙','IP_CAMERA','http','175.11.201.144',82,'湖南'],
				['2018-06-2813:46:33','长沙','IP_CAMERA','rtsp','175.11.198.103',554,'湖南'],
				['2018-06-2813:46:33','长沙','IP_CAMERA','rtsp','175.11.189.73',554,'湖南'],
				['2018-06-2813:46:33','长沙','IP_CAMERA','rtsp','175.11.214.207',554,'湖南'],
				['2018-06-2814:09:42','长沙','IP_CAMERA','rtsp','113.240.228.221',554,'湖南'],
				['2018-06-2814:09:42','长沙','IP_CAMERA','rtsp','113.240.240.68',554,'湖南']
			];
		}else if(name == '江西'){
			data = [
				['2018-06-3008:26:45','南昌','IP_CAMERA','rtsp','59.52.121.198',80,'江西'],
				['2018-06-2701:26:58','南昌','IP_CAMERA','rtsp','61.131.208.27',554,'江西'],
				['2018-06-2701:26:58','萍乡','IP_CAMERA','rtsp','111.77.113.203',554,'江西'],
				['2018-06-2701:27:58','上饶','IP_CAMERA','rtsp','182.84.108.78',554,'江西'],
				['2018-06-2701:27:58','上饶','IP_CAMERA','rtsp','182.84.111.33',554,'江西']
			];
		}else if(name == '广西'){
			data = [];
		}else if(name == '云南'){
			data = [];
		}else if(name == '山西'){
			data = [
				['2018-06-2905:37:48','太原','IP_CAMERA','onvif','124.47.18.231',3702,'山西'],
				['2018-06-2520:53:20','山西','NVR','http','210.13.245.136',80,'山西']
			];
		}else if(name == '陕西'){
			data = [
				['2018-06-2905:07:15','西安','IP_CAMERA','rtsp','125.76.164.14',554,'陕西'],
				['2018-06-2905:07:15','西安','IP_CAMERA','rtsp','125.76.181.149',554,'陕西'],
				['2018-06-2904:41:04','延安','IP_CAMERA','rtsp','36.40.172.183',554,'陕西'],
				['2018-06-2905:19:48','铜川','IP_CAMERA','http','221.11.124.104',80,'陕西'],
				['2018-06-2905:37:48','西安','IP_CAMERA','http','124.47.29.10',80,'陕西'],
				['2018-06-2905:26:14','安康','IP_CAMERA','rtsp','111.20.134.157',554,'陕西'],
				['2018-06-2905:26:14','渭南','IP_CAMERA','rtsp','111.20.124.40',554,'陕西'],
				['2018-06-2905:26:14','咸阳','IP_CAMERA','rtsp','111.20.129.94',554,'陕西'],
				['2018-06-2905:26:14','安康','IP_CAMERA','rtsp','111.20.134.238',554,'陕西'],
				['2018-06-2905:57:31','西安','IP_CAMERA','rtsp','219.145.42.92',554,'陕西'],
				['2018-06-2819:06:03','西安','IP_CAMERA','rtsp','106.36.41.181',554,'陕西'],
				['2018-06-2819:06:03','铜川','IP_CAMERA','rtsp','106.36.40.79',554,'陕西'],
				['2018-06-2819:06:03','西安','IP_CAMERA','rtsp','106.36.41.236',554,'陕西'],
				['2018-06-2819:06:03','西安','IP_CAMERA','rtsp','106.36.41.231',554,'陕西']
			];
		}else if(name == '甘肃'){
			data = [];
		}else if(name == '宁夏'){
			data = [];
		}else if(name == '贵州'){
			data = [
				['2018-06-2819:08:55','六盘水','IP_CAMERA','rtsp','1.206.27.247',554,'贵州'],
				['2018-06-2819:08:55','六盘水','IP_CAMERA','rtsp','1.206.41.124',554,'贵州'],
				['2018-06-2819:08:55','归阳','IP_CAMERA','rtsp','1.206.25.253',554,'贵州'],
				['2018-06-2819:08:55','六盘水','IP_CAMERA','rtsp','1.206.18.101',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','114.135.3.55',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','114.135.3.126',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','111.120.232.132',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','111.120.232.73',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','111.120.231.172',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','111.120.235.1',554,'贵州'],
				['2018-06-2819:10:24','遵义','IP_CAMERA','rtsp','111.120.242.162',554,'贵州'],
				['2018-06-2819:12:07','遵义','IP_CAMERA','rtsp','106.32.20.119',554,'贵州']
			];
		}else if(name == '海南'){
			data = [
				['2018-06-2905:18:09','海口','IP_CAMERA','rtsp','112.66.115.251',554,'海南'],
				['2018-06-2804:51:07','海口','NVR','http','220.174.246.17',34567,'海南']
			];
		}else if(name == '内蒙古'){
			data = [
				['2018-06-2620:23:25','包头','IP_CAMERA','rtsp','110.7.147.60',554,'内蒙古'],
				['2018-06-2620:23:25','赤峰','IP_CAMERA','rtsp','110.7.129.240',554,'内蒙古'],
				['2018-06-2620:23:25','赤峰','IP_CAMERA','rtsp','110.7.152.50',554,'内蒙古']
			];
		}else if(name == '青海'){
			data = [
				['2018-06-2905:45:38','海北藏族自治州','IP_CAMERA','rtsp','110.167.76.80',554,'青海'],
				['2018-06-2905:45:38','海北藏族自治州','IP_CAMERA','rtsp','110.167.76.77',554,'青海'],
				['2018-06-2905:45:38','海北藏族自治州','IP_CAMERA','rtsp','110.167.76.239',554,'青海'],
				['2018-06-2906:08:27','海东地区','IP_CAMERA','rtsp','110.167.206.78',554,'青海']
			];
		}else if(name == '西藏'){
			data = [];
		}else if(name == '澳门'){
			data = [];
		}
	}
	getResourceList(data);
}

function getResourceList(data){
    $("#ranklistRight3 .tab_content").html("")
    for(var i=0;i<data.length;i++){
        $("#ranklistRight3 .tab_content").append("<tr>"+
                "<td style='width:140px'>"+data[i][0]+"</td>"+
                "<td style='width:60px'>"+data[i][1]+"</td>"+
                "<td>"+data[i][2]+"</td>"+
                "<td>"+data[i][3]+"</td>"+
                "<td style='width:110px'>"+data[i][4]+"</td>"+
                "<td>"+data[i][5]+"</td>"+
            +"</tr>")
    }
}  

$(".cityChange").change(function(){
	$(".tabType li:eq(0)").trigger("click");
    var n = $(this).val();
    if(n =="工业控制设备"){
        $("#ranklistRight3 .tab_content").html("")
        /*mapList(data1)
        optionMap.series[0].data=convertData(data)
        mapChart.setOption(optionMap);*/
        
        //地图展示
        var mapData = [
        	{name:'广东',value:4495},
        	{name:'福建',value:4376},
        	{name:'北京',value:3142},
        	{name:'浙江',value:2105},
        	{name:'江苏',value:1640},
        	{name:'上海',value:1413},
        	{name:'山东',value:1404},
        	{name:'四川',value:1254},
        	{name:'湖北',value:1014},
        	{name:'广西',value:1004},
        	{name:'河北',value:971},
        	{name:'河南',value:876},
        	{name:'安徽',value:868},
        	{name:'辽宁',value:846},
        	{name:'黑龙江',value:694},
        	{name:'天津',value:677},
        	{name:'吉林',value:513},
        	{name:'山西',value:482},
        	{name:'湖南',value:450},
        	{name:'江西',value:447},
        	{name:'内蒙古',value:442},
        	{name:'云南',value:426},
        	{name:'陕西',value:425},
        	{name:'重庆',value:398},
        	{name:'新疆',value:301},
        	{name:'贵州',value:205},
        	{name:'甘肃',value:135},
        	{name:'宁夏',value:131},
        	{name:'海南',value:101},
        	{name:'青海',value:90},
        	{name:'西藏',value:39}
        ];
        
        //optionMap.series[0].data= mapData;
        //optionMap.visualMap.max = 2557; 
        var optionMap = getOptionMap(mapData,4340);
        mapChart.setOption(optionMap);
//        iNum=0
//        cityShow()
         type="1"
         show(mapData,4340); 
        //在线设备省份TOP10
        var yData=['广东','福建','北京','浙江','江苏','上海','山东','四川','湖北','广西']
        var xData=[4495,4376,3142,2105,1640,1413,1404,1254,1014,1004]
        barEvt(yData,xData,"gyBar1","40");
        $('#ldlx').empty();
        $('#ldlx').append('漏洞类型top10');
        
        //工业互联网在线设备类型
        var color1 = ["#00a9e1","#0046af","#360293","#560081","#af0058","#ff8700", "#09a7e2", "#93dd6e","#fce24f","#b8ff2e","#09e24b","#09e2cb"]
        var pieData=[
            {name:'DTU数据中心',value:799},
            {name:'网关',value:735},
            {name:'可编程逻辑控制器',value:716},
            {name:'操作员站',value:145},
            {name:'企业资源计划系统',value:107},
            {name:'人机交互系统',value:66},
            {name:'集散控制系统',value:40},
            {name:'矿业应用系统',value:39},
            {name:'数据采集监控系统',value:34},
            {name:'远程终端单元',value:24},
        ]
        rightPie(pieData,"gyPie1",10,color1,0);
        
        //设备厂商
        var yData1=['摩莎','宏电','西门子','罗克韦尔','Tridium','和利时','思爱普','才茂通信','施耐德','汉科泰软件']
        var xData1=[2438,1247,800,760,737,710,312,307,280,224]
        barEvt(yData1,xData1,"gyBar3","70");
        
        var yData=['缓冲区溢出','信息泄露','权限许可和访问控制','路径遍历','代码注入','资料不足','跨站脚本','输入验证','SQL注入','跨站请求伪造']
        var xData=[3248,1311,667,492,474,422,419,367,366,330]
        barEvt(yData,xData,"gyRander","70");
        
        var data1st=[
            {name:'高危',value:3034},
            {name:'中危',value:4263},
            {name:'低危',value:799}
        ]
        var color2=["red","#ff8d00","yellow"]
        rightPie(data1st,"gyPie3",3,color2,1)
        
        
    }else if(n =="视频监控设备"){
        $("#ranklistRight3 .tab_content").html("")
        
        mapData = [
        	{name:'江苏',value:110423},
        	{name:'山东',value:98501},
        	{name:'浙江',value:89714},
        	{name:'辽宁',value:66129},
        	{name:'广东',value:63000},
        	{name:'河北',value:43461},
        	{name:'福建',value:41818},
        	{name:'安徽',value:39927},
        	{name:'河南',value:31447},
        	{name:'重庆',value:25785},
        	{name:'吉林',value:23592},
        	{name:'四川',value:20180},
        	{name:'北京',value:19039},
        	{name:'上海',value:17833},
        	{name:'山西',value:17142},
        	{name:'湖南',value:15668},
        	{name:'江西',value:15104},
        	{name:'贵州',value:15098},
        	{name:'黑龙江',value:14544},
        	{name:'湖北',value:11334},
        	{name:'云南',value:10203},
        	{name:'陕西',value:8065},
        	{name:'广西',value:7902},
        	{name:'新疆',value:7551},
        	{name:'海南',value:6697},
        	{name:'天津',value:6159},
        	{name:'内蒙古',value:4213},
        	{name:'甘肃',value:3180},
        	{name:'西藏',value:2640},
        	{name:'宁夏',value:2044},
        	{name:'青海',value:1417}
        ]
        
//        optionMap.series[0].data=mapData;
//        optionMap.visualMap.max =50000  // 10918;
        var optionMap = getOptionMap(mapData,110423);
        mapChart.setOption(optionMap);
//        iNum=0
//        cityShow()
        type="2"
        show(mapData,110423)
        var yData=['江苏','山东','浙江','辽宁','广东','河北','福建','安徽','河南','重庆']
        var xData=[110423,98501, 89714, 66129, 63000, 43461, 41818, 39927, 31447, 25785]
        barEvt(yData,xData,"gyBar1","40");
        
        var color1 = ["#00a9e1","#0046af","#360293"]
        var pieData1=[
        	{name:'网络摄像机',value:344173},
        	{name:'数字视频录像机',value:63410},
        	{name:'网络硬盘录像机',value:15476}
        ]
        rightPie(pieData1,"gyPie1",3,color1,0);
        
       //设备厂商
       var yData1 = ['海康威视','大华','海思','雄迈','AVTech','风河','科达','安科数字','安讯士','天地伟业'];
       var xData1 = [139451,130302,51452,24077,5790,4903,3280,3042,1100,1039];
       barEvt(yData1,xData1,"gyBar3","60");
       
       var yData=['弱口令','未授权访问','权限许可和访问控制']
       var xData=[50865,25034,2142];
       $('#ldlx').empty();
       $('#ldlx').append('漏洞类型top3');
       barEvt(yData,xData,"gyRander","70");
       
       var data1st=[
    	    {name:'高危',value:50992},
    	    {name:'中危',value:25036},
    	    {name:'低危',value:2013}
    	] 
    	var color2=["red","#ff8d00","yellow"]
    	rightPie(data1st,"gyPie3",3,color2,1)
    }
    ranklistRight2Data(n);
})

ranklistRight2Data('工业控制设备');

function ranklistRight2Data(n){
	var ranklistRight2 = $('#ranklistRight2');
	ranklistRight2.empty();
	var datas = null;
	if(n =="工业控制设备"){ 
		datas = [
			['信息泄露','中危','59.53.167.46'],
			['缓冲区溢出','高危','111.39.37.98'],
			['输入验证','高危','111.198.71.106'],
			['信息泄露','中危','121.227.23.7'],
			['权限许可和访问控制','高危','222.222.34.234'],
			['权限许可和访问控制','高危','222.222.37.242'],
			['权限许可和访问控制','高危','222.222.37.204'],
			['信息泄露','中危','49.73.230.81'],
			['权限许可和访问控制','高危','124.239.129.210'],
			['信息泄露','中危','114.217.93.82'],
			['信息泄露','中危','27.18.145.164'],
			['输入验证','高危','42.87.212.77'],
			['信息泄露','低危','121.61.56.50'],
			['信息泄露','中危','219.231.149.32'],
			['信息泄露','中危','120.12.8.250'],
			['信息泄露','中危','106.85.237.38'],
			['缓冲区溢出','高危','60.168.145.47'],
			['信息泄露','中危','175.152.171.65'],
			['跨站脚本','高危','121.69.128.85'],
			['输入验证','高危','175.6.2.116'],
			['信息泄露','低危','58.211.154.108'],
			['信息泄露','低危','121.30.59.116'],
			['信息泄露','中危','58.19.205.148'],
			['信息泄露','中危','60.164.250.247'],
			['输入验证','高危','221.6.108.14'],
			['输入验证','高危','58.252.106.137'],
			['信息泄露','低危','218.76.55.186'],
			['输入验证','高危','124.164.249.200'],
			['缓冲区溢出','高危','124.17.117.70'],
			['信息泄露','中危','124.16.2.112'],
			['跨站脚本','高危','111.160.4.114'],
			['信息泄露','低危','219.153.199.30'],
			['输入验证','高危','60.20.219.21'],
			['信息泄露','中危','115.217.8.109'],
			['信息泄露','中危','111.72.125.158'],
			['权限许可和访问控制','高危','222.222.34.180'],
			['拒绝服务','高危','119.112.207.130'],
			['信息泄露','中危','101.69.45.173'],
			['拒绝服务','高危','175.171.174.246'],
			['输入验证','高危','117.172.162.26'],
			['权限许可和访问控制','高危','222.222.47.20'],
			['信息泄露','中危','175.162.88.193'],
			['拒绝服务','高危','183.64.175.167'],
			['缓冲区溢出','高危','183.230.40.143'],
			['授权问题','高危','120.36.80.110'],
			['权限许可和访问控制','高危','222.222.36.137'],
			['权限许可和访问控制','高危','219.148.53.158'],
			['权限许可和访问控制','高危','219.148.51.103'],
			['拒绝服务','高危','112.132.249.122'],
			['拒绝服务','高危','119.113.141.49'],
			['信息泄露','中危','125.75.132.88'],
			['跨站脚本','高危','218.201.67.247'],
			['信息泄露','中危','222.74.108.44'],
			['信息泄露','中危','60.14.55.99'],
			['跨站脚本','高危','139.196.83.74'],
			['缓冲区溢出','中危','218.25.171.113'],
			['跨站脚本','高危','60.164.127.105'],
			['信息泄露','中危','221.206.100.7'],
			['缓冲区溢出','中危','180.76.176.35'],
			['跨站请求伪造','高危','218.6.125.101'],
			['跨站脚本','高危','123.150.252.46'],
			['授权问题','高危','222.32.33.123'],
			['信息泄露','中危','183.3.150.182'],
			['权限许可和访问控制','高危','124.239.134.69'],
			['跨站脚本','高危','220.176.108.11'],
			['输入验证','高危','222.175.71.166'],
			['信息泄露','中危','183.26.255.27'],
			['权限许可和访问控制','高危','123.182.241.117'],
			['权限许可和访问控制','高危','124.239.144.131'],
			['权限许可和访问控制','高危','222.222.33.210'],
			['权限许可和访问控制','高危','222.222.34.142'],
			['权限许可和访问控制','高危','222.222.33.242'],
			['权限许可和访问控制','高危','123.182.241.109'],
			['权限许可和访问控制','高危','222.222.36.141'],
			['信息泄露','中危','111.160.243.75'],
			['信任管理','高危','124.165.238.199'],
			['授权问题','中危','218.28.206.6'],
			['信息泄露','低危','124.128.83.150'],
			['信息泄露','中危','115.217.8.62'],
			['信息泄露','中危','106.85.236.183'],
			['信息泄露','中危','221.2.221.22'],
			['信息泄露','中危','101.6.57.24'],
			['缓冲区溢出','高危','60.205.4.34'],
			['输入验证','高危','101.200.153.232'],
			['信息泄露','中危','116.54.115.175'],
			['信息泄露','低危','210.30.68.24'],
			['信息泄露','中危','115.217.8.181'],
			['输入验证','高危','124.88.174.76'],
			['信息泄露','中危','112.241.224.86'],
			['信息泄露','低危','122.96.88.132'],
			['信息泄露','中危','125.80.47.124'],
			['信息泄露','中危','123.158.20.30'],
			['缓冲区溢出','中危','183.230.40.59'],
			['拒绝服务','高危','114.115.209.18'],
			['跨站请求伪造','高危','60.15.18.110'],
			['拒绝服务','高危','121.43.183.103'],
			['拒绝服务','高危','113.234.183.35'],
			['信息泄露','中危','222.91.57.78'],
			['跨站脚本','高危','60.18.234.202'],
			['缓冲区溢出','中危','219.153.49.150'],
			['权限许可和访问控制','高危','61.133.193.42'],
			['信息泄露','中危','119.96.125.21'],
			['信任管理','高危','61.130.115.222'],
			['缓冲区溢出','高危','113.141.65.27'],
			['拒绝服务','高危','119.113.129.169'],
			['跨站脚本','高危','223.94.93.145'],
			['输入验证','高危','222.130.18.215'],
			['拒绝服务','高危','222.42.42.152'],
			['信息泄露','中危','171.212.65.96'],
			['信息泄露','中危','153.34.59.196'],
			['代码注入','中危','125.43.59.219'],
			['信息泄露','中危','183.26.255.248'],
			['信息泄露','低危','117.43.210.166']
		];
	}else if(n == '视频监控设备'){
		datas = [
			['弱口令','高危','123.121.88.228'],
			['弱口令','高危','121.69.38.118'],
			['弱口令','高危','124.193.116.2'],
			['未授权访问','中危','106.120.27.231'],
			['弱口令','高危','106.120.27.231'],
			['弱口令','高危','124.65.84.178'],
			['弱口令','高危','223.209.50.21'],
			['弱口令','高危','106.2.220.59'],
			['弱口令','高危','121.238.18.5'],
			['未授权访问','中危','121.230.231.99'],
			['弱口令','高危','121.230.231.99'],
			['弱口令','高危','115.47.116.64'],
			['未授权访问','中危','49.79.22.167'],
			['弱口令','高危','49.79.22.167'],
			['未授权访问','中危','222.191.211.241'],
			['弱口令','高危','222.191.211.241'],
			['弱口令','高危','58.209.174.109'],
			['权限许可和访问控制','低危','117.82.229.189'],
			['弱口令','高危','60.189.107.244'],
			['弱口令','高危','60.188.75.202'],
			['未授权访问','中危','125.45.82.223'],
			['弱口令','高危','125.45.82.223'],
			['权限许可和访问控制','低危','49.64.43.139'],
			['权限许可和访问控制','低危','49.64.23.141'],
			['弱口令','高危','112.82.60.143'],
			['弱口令','高危','180.114.200.78'],
			['未授权访问','中危','180.122.169.99'],
			['弱口令','高危','180.122.169.99'],
			['未授权访问','中危','114.223.154.200'],
			['弱口令','高危','114.223.154.200'],
			['未授权访问','中危','122.96.228.212'],
			['弱口令','高危','122.96.228.212'],
			['未授权访问','中危','49.70.165.9'],
			['弱口令','高危','49.70.165.9'],
			['未授权访问','中危','122.232.157.15'],
			['弱口令','高危','122.232.157.15'],
			['弱口令','高危','58.208.229.147'],
			['弱口令','高危','49.70.229.239'],
			['弱口令','高危','61.177.89.42'],
			['未授权访问','中危','121.231.16.39'],
			['未授权访问','中危','180.115.117.105'],
			['弱口令','高危','180.115.117.105'],
			['弱口令','高危','117.86.69.229'],
			['未授权访问','中危','180.115.240.82'],
			['未授权访问','中危','218.90.60.213'],
			['弱口令','高危','218.90.60.213'],
			['弱口令','高危','49.69.148.16'],
			['弱口令','高危','218.90.166.241'],
			['弱口令','高危','218.2.67.203'],
			['弱口令','高危','202.136.211.122'],
			['弱口令','高危','58.208.37.174'],
			['弱口令','高危','58.208.36.142'],
			['弱口令','高危','58.208.37.203'],
			['弱口令','高危','49.64.177.177'],
			['权限许可和访问控制','低危','117.62.108.24'],
			['弱口令','高危','117.62.115.57'],
			['弱口令','高危','117.80.123.201'],
			['弱口令','高危','123.66.207.231'],
			['弱口令','高危','114.223.78.37'],
			['弱口令','高危','58.209.180.151'],
			['弱口令','高危','14.125.99.4'],
			['弱口令','高危','14.125.97.35'],
			['弱口令','高危','49.72.34.54'],
			['未授权访问','中危','120.198.63.72'],
			['弱口令','高危','120.198.63.72'],
			['弱口令','高危','60.172.183.195'],
			['弱口令','高危','120.236.6.130'],
			['弱口令','高危','121.228.98.220'],
			['弱口令','高危','180.127.5.216'],
			['弱口令','高危','180.127.5.216'],
			['弱口令','高危','113.17.35.96'],
			['弱口令','高危','221.224.202.162'],
			['弱口令','高危','117.60.210.155'],
			['弱口令','高危','49.75.195.54'],
			['弱口令','高危','121.228.201.118'],
			['弱口令','高危','121.224.118.125'],
			['弱口令','高危','58.215.242.250'],
			['弱口令','高危','211.143.238.174'],
			['弱口令','高危','49.75.101.2'],
			['弱口令','高危','116.231.103.130'],
			['弱口令','高危','116.206.98.172'],
			['弱口令','高危','121.224.118.244'],
			['弱口令','高危','121.224.98.110'],
			['未授权访问','中危','114.229.229.120'],
			['弱口令','高危','114.229.229.120'],
			['弱口令','高危','114.237.208.77'],
			['弱口令','高危','121.224.186.150'],
			['权限许可和访问控制','低危','117.81.66.215'],
			['弱口令','高危','117.81.47.53'],
			['弱口令','高危','153.34.206.232']
		];
	}
	var str = "<table class='tab_content'>";
	for(var i = 0 ; i < datas.length ; i++){
		var lev = datas[i][1];
		var style = "highColor";
		if(lev == '高危'){
			style = "highColor";
		}else if(lev == '中危'){
			style = "midColor";
		}else if(lev == '底危'){
			style = "lowColor";
		}
		str +="<tr>"+
    	"<td>"+datas[i][0]+"</td>"+
    	"<td class='"+style+"'>"+datas[i][1]+"</td>"+
    	"<td>"+datas[i][2]+"</td>"+
    	"</tr>"
	}
	str +="</table>";
	ranklistRight2.append(str);
}